package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.PolicyDetail;
import www.woniuxy.com.class112.entity.PolicyDetailExample;

public interface PolicyDetailMapper {
    long countByExample(PolicyDetailExample example);

    int deleteByExample(PolicyDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PolicyDetail record);

    int insertSelective(PolicyDetail record);

    List<PolicyDetail> selectByExample(PolicyDetailExample example);

    PolicyDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PolicyDetail record, @Param("example") PolicyDetailExample example);

    int updateByExample(@Param("record") PolicyDetail record, @Param("example") PolicyDetailExample example);

    int updateByPrimaryKeySelective(PolicyDetail record);

    int updateByPrimaryKey(PolicyDetail record);

    @Select("select id,policy_id ,image_url ,noum from policy_detail   where policy_id=#{policyId}")
    //@Select("select policy_id,image_url,p_text from policy_detail   where policy_id= #{policyId}")
    PolicyDetail selectByPolicyId(@Param("policyId") Long policyId);
    @Select("select image_url from policy_detail   where policy_id=#{policyId}")
    String aaa(@Param("policyId") Long policyId);
}